package com.yuan.fullstackback.model.userRequest;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 用户登录对象
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class LoginBody {
    /**
     * 用户名
     */
    @Size(min = 5, max = 50, message = "密码长度5-50个字符")
    @NotBlank
    private String userName;

    /**
     * 用户密码
     */
    @Size(min = 5, max = 50, message = "密码长度5-50个字符")
    @NotBlank
    private String password;

    /**
     * 验证码
     */
//    private String code;

    /**
     * 唯一标识
     */
//    private String uuid;
}
